home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text;
-
- import java.util.Enumeration;
- import java.util.NoSuchElementException;
-
- class StyleContext$KeyEnumeration implements Enumeration {
- // $FF: synthetic field
- private final StyleContext this$0;
- Object[] attr;
- // $FF: renamed from: i int
- int field_0;
-
- StyleContext$KeyEnumeration(StyleContext var1, Object[] var2) {
- this.this$0 = var1;
- this.attr = var2;
- this.field_0 = 0;
- }
-
- public boolean hasMoreElements() {
- return this.field_0 < this.attr.length;
- }
-
- public Object nextElement() {
- if (this.field_0 < this.attr.length) {
- Object var1 = this.attr[this.field_0];
- this.field_0 += 2;
- return var1;
- } else {
- throw new NoSuchElementException();
- }
- }
- }
-